<template>
	<view class="comment">


		<view class="father-image">
			<image class="avatar" :src="comment.avatar"></image>
		</view>
		<view class='right-content'>
			<view class="nickname">{{ comment.nickname }}</view>
			<view class="content">{{ comment.content }}</view>
			<view class="time">{{ comment.time }}</view>
		</view>
	</view>

</template>

<script>
	export default {
		name: 'Comment',
		props: {
			comment: {
				type: Object,
				required: true
			}
		}
	};
</script>

<style>
	.comment {
		height: 300rpx;
		display: flex;
		padding: 10rpx;
border-top-style:solid;
border-bottom-style:solid;
	}

	.father-image {
		
		height: 100%;
	}

	.avatar {
		width: 60rpx;
		height: 60rpx;
		border-radius: 50%;
		margin-right: 10rpx;
	}
.right-content{
	height: 100%;
	flex:1;

}
	.nickname {
		flex-shrink: 0;
		font-weight: bold;
		font-size: 16rpx;
		

	}

	.content {
		height: 200rpx;
		flex-shrink: 0;
		font-size: 14rpx;
	
	}

	.time {
		font-size: 12rpx;
		color: #999999;
	}
</style>